#!/bin/bash

if [[ $# -lt 1 ]]; then
    echo "$0: [dbtype]"
    exit
fi

DATABASE=$1
BUILD_DIR=/home/lyp/dnskv/build

workloads="c a b d e f"
for w in $workloads; do
    # set the numa affinity
    cgexec -g memory:dnskv numactl --membind=0 --cpunodebind=0 ${BUILD_DIR}/benchmark \
                -t ${DATABASE} -n 16 -f /data/lyp/ycsb100m/query_${w}.dat
done